import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        System.out.println("请输入一个数字》");
        Scanner scan = new Scanner (System.in);
        int input = scan.nextInt();
        int i = 2;
        for (; i <= Math.sqrt(input); i++) {
            if(input % i == 0){
                break;
            }
            }
        if(i > Math.sqrt(input)){
            System.out.println(input + "是素数");


        }

    }
    }
